/*
 * @Description: 你的代码我的心
 * @Author: GGB
 * @Date: 2022-01-26 10:18:53
 * @LastEditors: GGB
 * @LastEditTime: 2022-01-26 11:41:35
 */
import { defHttp } from '/@/utils/http/axios';

import { BasicResult } from '../model/baseModel';
import { CacheParams } from './model/cacheModel';

enum Api {
  CacheInfo = 'setting.cache/clear',
}
/**
 * 清除缓存
 */
export const setCache = (params: CacheParams) =>
  defHttp.post<BasicResult>({ url: Api.CacheInfo, params });
